HAL EXTI migration: List of applicable concepts ¶
This section provides information about the HAL EXTI applicable architecture concepts.
Concepts for EXTI ¶
|
Concept |
Description |
|---|---|
|
In HAL2, the
The
|
|
|
Removal and conversion of init structure to configuration structure |
The initialization structure has been removed from the handle and converted to a configuration structure given as parameter to the
|
|
The handle structure
|
|
|
Two functions to set and get user data are available:
|
|
|
HAL EXTI APIs now rely on LL APIs rather than performing direct register access. |
|
|
Define statements and enumerations redirected to LL equivalents |
HAL EXTI define statements and enumerations are based on LL define statements. |
|
Update the global state machine to return
|
|
|
The HAL EXTI functions were updated to return:
|
|
|
All TypeDef parts of the HAL EXTI driver have been removed and replaced by
|
|
|
Const keywords have been added to non-modifiable pointers to ensure that either the pointer itself or the data it points to cannot be modified. This enhances code safety and readability, prevents unintended modifications, and renders code more robust and maintainable. |
|
|
The parameters and state are checked using
|
|
|
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels. |
Finite parameters (including EXTI instances) have been converted into enumerated types (enums) at HAL level. This improves code readability, maintainability, and type safety. |
|
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions). |
All HAL EXTI functions start with
|